#!/usr/bin/python

import string

TEMPLATE = string.Template(
""" 			{
				"box" : 				{
					"maxclass" : "bpatcher",
					"numinlets" : 0,
					"presentation_rect" : [ $start, 16.0, 16.0 ],
					"numoutlets" : 0,
					"id" : "obj-$num",
					"patching_rect" : [ $start, 16.0, 16.0 ],
					"presentation" : 1,
					"name" : "single-hint.maxpat",
					"args" : [ #1 $num ]
				}

			}
""")

 
def OneCell(row, col):
  num = 16 * row + col
  start = '%d.0, %d.0' % (16*col, 16*row)
  return TEMPLATE.substitute(num=num, start=start)

def OneRow(row):
  return ','.join(OneCell(row, col) for col in xrange(0, 16))
      
print ','.join(OneRow(row) for row in xrange(0, 16))
